<?php 
ob_start();
$usuario = $_POST["txtUsuario"];
$pass = $_POST["txtPassword"];
$usr="admin";
$pas="123";
if ($usuario != "" || $pass =! "") {
	if ($usuario==$usr) {
		if ($pass==$pas) {
			session_start();
			$_SESSION["logueado"]="1";
			header('Location: inicio.php');
		} else {
			header('Location: index.php?e=2');
		}
		
	} else {
		header('Location: index.php?e=1');
	}
	
}else {
		header('Location: index.php?e=0');
	}

?>